package Exercise;
//敏感词屏蔽
import java.util.Scanner;
public class String_3 {
    public static void main(String[] args) {
        //敏感词库
        String[] words = {"CNM","TMD","SB"};
        //用户输入语句
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        //屏蔽
        for (int i = 0; i <words.length ; i++) {
            word = word.replace(words[i],"***");
        }
        System.out.println(word);
    }
}
